/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view.common;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @Archivo MenuOpcion.java
 * @Fecha                @Autor   @Cambios
 * 21/01/2011 06:01:31 PM       jcamayo
 */
public class MenuOpcion implements Serializable {

    private Object child;
    private List<MenuOpcion> childList;

    public MenuOpcion() {
    }

    public MenuOpcion(Object child) {
        this.child = child;
        childList = new ArrayList<MenuOpcion>();
    }

    public Object getChild() {
        return child;
    }

    public void setChild(Object child) {
        this.child = child;
    }

    public List<MenuOpcion> getChildList() {
        return childList;
    }

    public void setChildList(List<MenuOpcion> childList) {
        this.childList = childList;
    }

    public int getChildCount() {
        int count = 0;
        if (childList != null) {
            count = childList.size();
        }
        return count;
    }
}
